﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadLibrary.Managing.Items
{
    /// <summary>
    /// Serves as base for item managing.
    /// </summary>
    public class Item
    {
        /// <summary>
        /// Gets or sets item's ID.
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// Gets or sets item's name.
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Creates new empty item.
        /// </summary>
        public Item()
        {
            this.ID = 0;
            this.Name = "";
        }
        /// <summary>
        /// Creates new item with specified ID.
        /// </summary>
        /// <param name="ID">Specifies item's ID.</param>
        public Item(int ID)
        {
            this.ID = ID;
            this.Name = "";
        }
        /// <summary>
        /// Creates new item with specified name.
        /// </summary>
        /// <param name="Name">Specifies name of new item.</param>
        public Item(string Name)
        {
            this.ID = 0;
            this.Name = Name;
        }
        /// <summary>
        /// Creates new item with specified ID and specified name.
        /// </summary>
        /// <param name="ID">Specifies ID of new item.</param>
        /// <param name="Name">Specifies name of new item.</param>
        public Item(int ID, string Name)
        {
            this.ID = ID;
            this.Name = Name;
        }
    }
}
